import axios from "./axios";
import { patch } from "./index";
export default {
  //userinfo
  query: (params) => {
    return axios({
      method: "get",
      url: "addresslist",
      params,
    });
  },
  add: (params) => {
    return axios({
      method: "post",
      url: "addresslist",
      data: params,
    });
  },
  updata: (id, data) => {
    return patch("addresslist" + "/" + id, data);
  },
};
